import request from '@/utils/request'
// 详情列表
export function getncpPatientInfo(id) {
    return request({
        url: '/ds/lunginfo/get_patientinfo/' + id,
        method: 'get',
    })
}

export function getncpPatientInfoAll(index, size, name) {
    return request({
        url: '/ds/upload',
        method: 'get',
        params: {
            index,
            size,
            name
        }
    })
}
// 报告验证
export function patientFlag(pid) {
    return request({
        url: '/ds/upload/wx_verify',
        method: 'get',
        params: {
            pid
        }
    })
}
// 获取报告
export function getReportText(dsid) {
    return request({
        url: '/ds/upload/get_diameterArray',
        method: 'get',
        params: {
            dsid
        }
    })
}

//获取列表信息：ds.pushiyixue.com/ds/upload/upload_getlist?name='用户名'
export function getUploadList(name) {
    return request({
        url: '/ds/upload/upload_getlist',
        method: 'get',
        params: {
            name
        }
    })
}

//upload_updatelist?name
export function uploadgetList(dsid,name) {
    return request({
        url: '/ds/upload/upload_updatelist',
        method: 'get',
        params: {
            dsid,
            name
        }
    })
}

//合并文件夹POST:ds.pushiyixue.com/ds/upload/upload_mergedir（dsid,name）
export function mergedir(data) {
    return request({
        url: '/ds/upload/upload_mergedir',
        method: 'post',
        data
    })
}

//
export function comparison(data) {
    return request({
        url: '/ds/upload/upload_comparison',
        method: 'post',
        data
    })
}